@extends('layouts.admin')
@section('content')
        <!--头部 开始-->
<div class="top_box">
    <div class="top_left">
        <div class="logo">后台管理模板</div>
        <ul>
            <li><a href="{{ asset('/') }}" class="active">首页</a></li>
            <li><a href="{{ asset('/admin/info') }}" target="main">基本信息</a></li>
            <li class="active">当前时间：<span id="times"></span></li>
        </ul>
    </div>
    <div class="top_right">
        <ul>
            <li>管理员：{{ auth()->user()->name }}</li>
            <li><a href="pass.html" target="main">修改密码</a></li>
            <li>
                <a href="{{ url('/logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">退出</a>
                <form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
                    {{ csrf_field() }}
                </form>
            </li>
        </ul>
    </div>
</div>
<!--头部 结束-->

<!--左侧导航 开始-->
<div class="menu_box">
    <ul>
        <li>
            <h3><i class="fa fa-fw fa-clipboard"></i>常用操作</h3>
            <ul class="sub_menu">
                <li><a href="{{ url('/admin/manager') }}" target="main"><i class="fa fa-fw fa-male"></i>管理员列表</a></li>
                <li><a href="{{ url('/admin/article') }}" target="main"><i class="fa fa-fw fa-list-alt"></i>文章列表</a></li>
                <li><a href="{!! url('/admin/category') !!}" target="main"><i class="fa fa-fw fa-list-ul"></i>分类列表</a></li>
                <li><a href="img.html" target="main"><i class="fa fa-fw fa-image"></i>图片列表</a></li>
            </ul>
        </li>
        <li>
            <h3><i class="fa fa-fw fa-cog"></i>系统设置</h3>
            <ul class="sub_menu">
                <li><a href="#" target="main"><i class="fa fa-fw fa-cubes"></i>网站配置</a></li>
                <li><a href="#" target="main"><i class="fa fa-fw fa-database"></i>备份还原</a></li>
            </ul>
        </li>
        <li>
            <h3><i class="fa fa-fw fa-thumb-tack"></i>工具导航</h3>
            <ul class="sub_menu">
                <li><a href="http://www.yeahzan.com/fa/facss.html" target="main"><i class="fa fa-fw fa-font"></i>图标调用</a></li>
                <li><a href="http://hemin.cn/jq/cheatsheet.html" target="main"><i class="fa fa-fw fa-chain"></i>Jquery手册</a></li>
                <li><a href="http://tool.c7sky.com/webcolor/" target="main"><i class="fa fa-fw fa-tachometer"></i>配色板</a></li>
                <li><a href="element.html" target="main"><i class="fa fa-fw fa-tags"></i>其他组件</a></li>
            </ul>
        </li>
    </ul>
</div>
<!--左侧导航 结束-->

<!--主体部分 开始-->
<div class="main_box">
    <iframe src="{{ URL::to('/admin/info') }}" frameborder="0" width="100%" height="100%" name="main"></iframe>
</div>
<!--主体部分 结束-->

<!--底部 开始-->
<div class="bottom_box">
    CopyRight © 2015. Powered By <a href="{{ url('/') }}">{{ url('/') }}</a>.
</div>
<!--底部 结束-->
<script type="text/javascript">
    function changetime(){
        var ary = Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
        var Timehtml = document.getElementById('times');
        var date = new Date();
        Timehtml.innerHTML = ''+date.toLocaleString()+'   '+ary[date.getDay()];
    }
    window.onload = function(){
        changetime();
        setInterval(changetime,1000);
    }
</script>
@endsection